import request from '@/utils/request'

// 查询废料详情列表
export function listWasteStoreList(query) {
  return request({
    url: '/mes/WasteStoreList/list',
    method: 'get',
    params: query
  })
}

// 查询废料详情详细
export function getWasteStoreList(id) {
  return request({
    url: '/mes/WasteStoreList/' + id,
    method: 'get'
  })
}

// 新增废料详情
export function addWasteStoreList(data) {
  return request({
    url: '/mes/WasteStoreList',
    method: 'post',
    data: data
  })
}

// 修改废料详情
export function updateWasteStoreList(data) {
  return request({
    url: '/mes/WasteStoreList',
    method: 'put',
    data: data
  })
}

// 删除废料详情
export function delWasteStoreList(id) {
  return request({
    url: '/mes/WasteStoreList/' + id,
    method: 'delete'
  })
}

// 导出废料详情
export function exportWasteStoreList(query) {
  return request({
    url: '/mes/WasteStoreList/export',
    method: 'get',
    params: query
  })
}